﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FeedBack {
    public static class TypeConversionExtensions {
        public static int ToInt(this object value){
            int result = 0;
            int.TryParse(value as string, out result);
            return result;
        }

        public static DateTime ToDateTime(this object value) {
            DateTime result = DateTime.Now;
            DateTime.TryParse(value as string, out result);
            return result;
        }
    }
}
